# -*- coding: utf-8 -*-
"""
@Time ： 2024/2/27 21:14
@Auth ： 九问
@File ：urls.py
@IDE ：PyCharm
@Email : 2750826557@qq.com
"""
from django.urls import path
from . import views

app_name = 'blog'
urlpatterns = [
    path('', views.index, name='index'),
    path('add_post/', views.add_post, name='add_post'),
    path('category/<int:category_id>/', views.category_list, name='category_list'),
    path('add-category/', views.add_category, name='add_category'),
    path('add-tag/', views.add_tag, name='add_tag'),
    path('delete/post/<int:post_id>/', views.delete_post, name='delete_post'),
    path('delete/category/<int:category_id>/', views.delete_category, name='delete_category'),
    path('delete/tag/<int:tag_id>/', views.delete_tag, name='delete_tag'),
    path('manage/posts/', views.manage_posts, name='manage_posts'),
    path('manage/categories/', views.manage_categories, name='manage_categories'),
    path('manage/tags/', views.manage_tags, name='manage_tags'),
    path('post/<int:post_id>/', views.post_detail, name='post_detail'),
    path('search/', views.search, name='search'),
    path('archives/<int:year>/<int:month>/', views.archives, name='archives'),
    path('author/<int:user_id>/', views.author_detail, name='author_detail'),
]
